<include file="Member:header"/>
<div id="content">
    <div class="crumbs_nav mb">
        <span class="icon">当前位置：</span>
        <a href="/">首页</a>
        &gt; <a href="/">会员中心</a>
        &gt; 密码管理
    </div>
    <include file="Member:b_menu"/><!--end w220-->
    <div class="w730 fl">
        <div class="cui-box5">
            <div class="title">
                <h2 class="tith wz2">密码管理</h2>
            </div>
            <!--end title-->
            <div class="cbox pa10 mh350">
                <input type="hidden" id="m_oldpassword" value="{$oldpassword}"/>
                <form method="post" action="{:U('Member/pwd')}" class="FormInline" id="pwd_form" onsubmit="return checkpwd();">
                    <ul class="elem_form">
                        <li>
                            <span class="label_like">当前密码：</span>
                            <input id="oldpassword" name="oldpassword" type="password" class="input_1" value="" />
                        </li>
                        <li>
                            <span class="label_like">新&nbsp;密&nbsp;码：</span>
                            <input id="newpassword" type="password" class="input_1" size="19" maxlength="16" value="" name="password"><span class="gray_6">6-16个字符，区分大小写，建议不要使用您的姓名或ID</span>
                        </li>
                        <li>
                            <span class="label_like">确认密码：</span>
                            <input id="renewpassword" type="password" class="input_1" value="" />
                        </li>
                        <li class="container_btn">
                            <div class="nr red" id="vid">
                            </div>
                            <button type="submit" class="input_btn">
                                确定
                            </button>
                        </li>
                    </ul>
                </form>
            </div>
            <!--end cbox-->
        </div>
        <!--end cui-box5-->
    </div>
    <!--end w220-->
    <div class="clear">
    </div>
</div>
<script language="JavaScript">
    function pwdok(jdata){
        if (jdata.status) {
            $('#vid').html(jdata.info);
        }
        else {
            $('#vid').html(jdata.info);
        }
    }
    
    function checkpwd(){
        if ($('#oldpassword').val() == '') {
            $('#vid').html('原始密码不一致！');
            return false;
        }
        if ($('#newpassword').val() == '') {
            $('#vid').html(' 密码由6-16个字符组成，为了您的账号安全，不建议使用全数字、全字母或连续字符作为密码。');
            return false;
        }
        if ($('#newpassword').val() != $('#renewpassword').val()) {
            $('#vid').html('再次输入密码不一致');
            return false;
        }
        postForm('pwd_form', pwdok);
         return false;
    }
</script>
<include file="Layout:footer"/>